home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_ORBit.idb / usr / freeware / include / orb / env.h.z / env.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  2.5 KB  |  78 lines

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
  2.  
  3. /*
  4.  *  ORBit: A CORBA v2.2 ORB
  5.  *
  6.  *  Copyright (C) 1998, 1999 Richard H. Porter, Red Hat Software
  7.  *
  8.  *  This library is free software; you can redistribute it and/or
  9.  *  modify it under the terms of the GNU Library General Public
  10.  *  License as published by the Free Software Foundation; either
  11.  *  version 2 of the License, or (at your option) any later version.
  12.  *
  13.  *  This library is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  *  Library General Public License for more details.
  17.  *
  18.  *  You should have received a copy of the GNU Library General Public
  19.  *  License along with this library; if not, write to the Free
  20.  *  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  *
  22.  *  Author: Dick Porter <dick@cymru.net>
  23.  *
  24.  */
  25.  
  26. #ifndef _ORBIT_ENV_H_
  27. #define _ORBIT_ENV_H_
  28.  
  29. #include "orbit_types.h"
  30.  
  31. extern void CORBA_exception_set(CORBA_Environment *ev,
  32.     CORBA_exception_type major, 
  33.     CORBA_char *except_repos_id,
  34.     void *param);
  35.  
  36. extern void CORBA_exception_set_system(CORBA_Environment *ev,
  37.     CORBA_unsigned_long minor,
  38.     CORBA_completion_status completed);
  39.  
  40. extern void CORBA_exception_init(CORBA_Environment *ev);
  41.  
  42. extern CORBA_char *CORBA_exception_id(CORBA_Environment *e);
  43.  
  44. extern void *CORBA_exception_value(CORBA_Environment *ev);
  45.  
  46. extern void CORBA_exception_free(CORBA_Environment *ev);
  47.  
  48. extern CORBA_any *CORBA_exception_as_any(CORBA_Environment *ev);
  49.  
  50. typedef struct {
  51.     const CORBA_TypeCode tc;
  52.     void (*demarshal)(GIOPRecvBuffer *_ORBIT_recv_buffer, CORBA_Environment *ev);
  53. } ORBit_exception_demarshal_info;
  54.  
  55. typedef struct {
  56.     const CORBA_TypeCode tc;
  57.     void (*marshal)(GIOPSendBuffer *_ORBIT_send_buffer, CORBA_Environment *ev);
  58. } ORBit_exception_marshal_info;
  59.  
  60. /* ORBit-specific */
  61. void ORBit_handle_exception(GIOPRecvBuffer *rb, CORBA_Environment *ev,
  62.                 const ORBit_exception_demarshal_info *user_exceptions,
  63.                 CORBA_ORB orb);
  64. void ORBit_send_system_exception(GIOPSendBuffer *send_buffer,
  65.                  CORBA_Environment *ev);
  66. void ORBit_send_user_exception(GIOPSendBuffer *send_buffer,
  67.                    CORBA_Environment *ev,
  68.                    const ORBit_exception_marshal_info *user_exceptions);
  69.  
  70. /* Used by stubs */
  71. void ORBit_handle_system_exception(CORBA_Environment *ev,
  72.                    CORBA_unsigned_long system_exception_minor,
  73.                    CORBA_unsigned_long completion_status,
  74.                    GIOPRecvBuffer *recv_buffer,
  75.                    GIOPSendBuffer *send_buffer);
  76.  
  77. #endif /* !_ORBIT_ENV_H_ */
  78.